<template>
	<view  class="body" style="background-color: #FFFFFF;">
		123123
		
		<!-- <view >
			<unicloud-db v-slot:default="{data, loading, error, options}" collection="zhihu-daily-articles">
				<view v-if="error">{{error.message}}</view>
				<view v-else>
					<view v-html="data[0].content"></view>
				</view>
			</unicloud-db>
		</view> -->
	</view>
</template>

<script>
	export default {
		data(){
			return{
				texts:'loading'
			}
		},
		methods:{

			init(){
				uni.request({
					header:{
						Referer: 'http://m.wufazhuce.com/one',
						
						Host: 'm.wufazhuce.com',
						
						Cookie: '_ga=GA1.2.1319856901.1598493031; Hm_lvt_f5c3b24a04c561936d708b55833d8294=1624521663,1624583319; _gid=GA1.2.1976410504.1624861747; PHPSESSID=fvddi6cosj9ktifuvjhqjo3m9o; _gat=1; Hm_lvt_c945a8c1ead2ed7539596f4ded541ec1=1624861747,1624928305,1624931010,1624931646; Hm_lpvt_c945a8c1ead2ed7539596f4ded541ec1=1624931651'
					},
				    url: 'http://m.wufazhuce.com/one/ajaxlist/0?_token=2df48f5e3886d886f00e5d4c8e92e4d3ff8345ff',
				    // url: 'http://m.wufazhuce.com/one/ajaxlist/0?_token=c2f51203176d662e10c7596f5681fb3be2f47e11',
					withCredentials:true,
					method:'GET',
				  //   data: {
						// // page:0,
				  //       _token: '2df48f5e3886d886f00e5d4c8e92e4d3ff8345ff',
				  //   },
				    success: (res) => {
				        console.log(res);
				        // this.texts = res.data;
				    }
				});
				
			},
			cloudInit(){
				uniCloud.callFunction({
					name:'chb-crawler-zhihu',
					// name:'movie',
				}).then(res=>{
					console.log(res);
				})
			}
		},
		onLoad() {
		},
		onReady() {
			// this.init()
			this.cloudInit()
		}
	}
</script>

<style scoped>

</style>